package org.scboy.utils.entitys.coobi;

/**
 * 
 * 列配置
 * 
 * @author yanghao
 *
 */
public class DbColumn {

	/**
	 * 列名称
	 */
	private String name;

	/**
	 * 字段名称
	 */
	private String entityName;
	
	/**
	 * 数据类型
	 */
	private String dbType;

	/**
	 * 是否主键
	 */
	private boolean primary;

	/**
	 * 长度
	 */
	private int length;

	/**
	 * 不为空
	 */
	private boolean notNull;

	/**
	 * 列备注
	 */
	private String comment;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public boolean isPrimary() {
		return primary;
	}

	public void setPrimary(boolean primary) {
		this.primary = primary;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public boolean isNotNull() {
		return notNull;
	}

	public void setNotNull(boolean notNull) {
		this.notNull = notNull;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getEntityName() {
		return entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

}
